<style type="text/css">
	.box{}
	.code_box{box-sizing:border-box;padding: 0px 50px;}
	.btn_box{text-align: center;}
	img{max-width: 100%;max-height: 100%;display: block;margin: 0 auto;}
	.btn{display: inline-block;padding: 10px 100px;border-radius: 5px;text-decoration: none;color: #fff;}
	.red{background: #FF5722;}
	.ts{line-height: 100px;text-align: center;}
</style>
<div class="box"> 
	<div class="code_box">
	{notempty name="code"}
		<img src="{$code}" class="codeimg">
	{else/}
		<div class="ts">二维码生成失败，请删除重新生成</div>
	{/notempty}
	</div>
	<div class="btn_box"><a href="{$code}" download="{$codename}" class="btn red">下载</a></div>
</div>